/**
 * @param {HTMLElement} el
 * @param {string} transition
 */
export function setElementTransition(el: HTMLElement, transition: string): void {
  if (!el) return
  try {
    el.style.transition = transition
  } catch (e) {
    console.error('Error setting element transition:', e)
  }
} 